/*
 * @Author: bear
 * @Date: 2022-09-07 11:00:36
 * @LastEditors: bear
 * @LastEditTime: 2022-09-07 17:04:09
 * @Description: your project
 * @version: 1.0
 */
let createExcel = require('./writeExcel')
const userRegister = (ctx,next) => {
 const { username, password } = ctx.request.query // 从上下文的 request 对象中获取
 if(username == '' || password == ''){
     ctx.body = `账户密码不能是空啊~兄跌`
 }else{
     ctx.body = `注册成功`
     createExcel(username,password,new Date())
     // createExcel()
 }
}
module.exports = userRegister